<!DOCTYPE html>
<!-- saved from url=(0040)http://xiaobaosc.com/mobile/register.php -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="ECSHOP v2.7.3">

    <meta name="viewport" content="width=device-width">
    <title>用户中心_小宝商城 </title>
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="./static/css/public.css">
    <link rel="stylesheet" type="text/css" href="./static/css/login.css">


    <script type="text/javascript" src="./static/js/jquery.js"></script>
    <script type="text/javascript" src="./static/js/common.js"></script>
    <script type="text/javascript" src="./static/js/utils.js"></script>
    <script type="text/javascript" src="./static/js/register.js"></script>
    <script type="text/javascript" src="./static/js/transport.js"></script>
</head>
<body>
<header id="header" class="header">
    <div class="h-left"><a href="javascript:history.back(-1)" class="back"></a></div>
    <div class="h-mid">用户注册</div>
</header>
<div id="tbh5v0">
    <script type="text/javascript">

        $().ready(function () {

            setCurrentForm($("#mobileForm"));

            //判断点击验证码
            var is_mob_log = true;

            $("#mobileForm").find(".check-code-img").click();

            //登录切换
            $("#logRegTab li").bind("click", function () {
                if (this.id == "mob_log") {

                    if (is_mob_log) {
                        return;
                    }

                    is_mob_log = true;

                    $("#mob_log").removeClass("currl");
                    $("#acc_log").addClass("currr");
                    $("#phonearea").removeClass("hide");
                    $("#accountarea").addClass("hide");

                    setCurrentForm($("#mobileForm"));

                    $("#mobileForm").find(".check-code-img").click();
                } else {

                    if (!is_mob_log) {
                        return;
                    }

                    is_mob_log = false;

                    $("#acc_log").removeClass("currr");
                    $("#mob_log").addClass("currl");
                    $("#phonearea").addClass("hide");
                    $("#accountarea").removeClass("hide");

                    setCurrentForm($("#emailForm"));

                    $("#emailForm").find(".check-code-img").click();
                }
                $(".btn_log").css("color", "#FFFEFE");

            });
        });
    </script>
    <div class="log_reg_box">
        <ul class="tab" id="logRegTab">
            <li id="mob_log" class="curr" style="cursor:pointer;">
						<span>
							<font>手机注册</font>
						</span>
            </li>
            <li id="acc_log" class="curr currr" style="cursor:pointer;">
						<span>
							<font>邮箱注册</font>
						</span>
            </li>
        </ul>
        <div id="logRegTabCon">
            <div class="log_reg_item" id="phonearea">
                <form action="http://xiaobaosc.com/mobile/register.php" id="mobileForm" name="mobileForm" method="post">
                    <input type="hidden" id="register_type" name="register_type" value="mobile">

                    <div class="field phone">
                        <input type="text" id="mobile_phone" name="mobile_phone" placeholder="手机号"
                               class="c-form-txt-normal" onblur="checkMobilePhone(this);">
                        <div class="tips">
                            <span id="mobile_phone_notice" style="color: rgb(153, 0, 0);">* 手机号码不能为空</span>
                        </div>
                    </div>
                    <div class="field pwd">
                        <input type="password" id="password" name="password" placeholder="密码" class="c-form-txt-normal"
                               onblur="check_password(this.value);">
                        <div class="tips">
                            <span id="password_notice"></span>
                        </div>
                    </div>
                    <div class="field pwd">
                        <input type="password" id="confirm_password" name="confirm_password" placeholder="确认密码"
                               class="c-form-txt-normal" onblur="check_confirm_password(this.value);">
                        <div class="tips">
                            <span id="confirm_password_notice"></span>
                        </div>
                    </div>
                    <div class="yanzheng" style=" margin-top:0px;">
                        <div class="codeTxt">
                            <input type="text" id="mobile_code" name="mobile_code" placeholder="手机验证码">
                        </div>
                        <div class="codePhoto">
                            <input id="zphone" type="button" value="获取手机验证码 " class="zphone"
                                   style="color:#FFF;cursor:pointer;">
                        </div>
                    </div>
                    <input type="submit" id="btn_submit" name="Submit" class="btn_big1" value="注 册" disabled="disabled">
                    <input type="hidden" name="act" value="register">
                    <input type="hidden" name="back_act" value="">
                </form>
            </div>
            <div class="log_reg_item hide" id="accountarea">
                <form action="http://xiaobaosc.com/mobile/register.php" method="post" id="emailForm" name="emailForm">
                    <input type="hidden" id="register_type" name="register_type" value="email">
                    <div class="field email">
                        <div class="st">
                            <input type="email" name="email" placeholder="邮箱地址" value="" class="c-form-txt-normal"
                                   id="email" onblur="checkEmail(this.value);">
                        </div>
                        <div class="tips">
                            <span id="email_notice"></span>
                        </div>
                    </div>
                    <div class="field pwd">
                        <div>
                            <input type="password" name="password" id="password" onblur="check_password(this.value);"
                                   value="" placeholder="密码" class="c-form-txt-normal">
                        </div>
                        <div class="tips">
                            <span id="password_notice"> </span>
                        </div>
                    </div>
                    <div class="field pwd">
                        <div>
                            <input type="password" name="confirm_password" id="confirm_password"
                                   onblur="check_confirm_password(this.value);" value="" placeholder="确认密码"
                                   class="c-form-txt-normal">
                        </div>
                        <div class="tips">
                            <span id="confirm_password_notice"> </span>
                        </div>
                    </div>
                    <div class="yanzheng" style=" margin-top:0px;">
                        <div class="codeTxt">
                            <input type="text" id="email_code" name="email_code" placeholder="邮箱验证码"></div>
                        <div class="codePhoto">
                            <input id="zemail" type="button" value="获取邮箱验证码" class="zphone"
                                   style="color:#FFF;cursor:pointer;">
                        </div>
                    </div>

                    <input type="checkbox" style="display: none" name="agreement" value="1" checked="checked"
                           required="">
                    <input type="submit" id="btn_submit" name="Submit" class="btn_big1" style="cursor:pointer;"
                           value="注 册">
                    <input type="hidden" name="act" value="register">
                    <input type="hidden" name="back_act" value="">


                </form>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        var process_request = "正在处理您的请求...";
        var username_empty = "- 用户名不能为空。";
        var username_shorter = "- 用户名长度不能少于 3 个字符。";
        var username_invalid = "- 用户名只能是由字母数字以及下划线组成。";
        var password_empty = "- 登录密码不能为空。";
        var password_shorter = "- 登录密码不能少于 6 个字符。";
        var confirm_password_invalid = "- 两次输入密码不一致";
        var email_empty = "- Email 为空";
        var email_invalid = "- Email 不是合法的地址";
        var agreement = "- 您没有接受协议";
        var msn_invalid = "- msn地址不是一个有效的邮件地址";
        var qq_invalid = "- QQ号码不是一个有效的号码";
        var home_phone_invalid = "- 家庭电话不是一个有效号码";
        var office_phone_invalid = "- 办公电话不是一个有效号码";
        var mobile_phone_invalid = "- 手机号码不是一个有效号码";
        var msg_un_blank = "* 用户名不能为空";
        var msg_un_length = "* 用户名不得超过14个字符";
        var msg_un_format = "* 用户名含有非法字符";
        var msg_un_registered = "* 用户名已经存在,请重新输入";
        var msg_can_rg = "* 可以注册";
        var msg_email_blank = "* 邮件地址不能为空";
        var msg_email_registered = "* 邮箱已存在";
        var msg_email_format = "* 邮件地址不合法";
        var msg_blank = "不能为空";
        var no_select_question = "- 您没有完成密码提示问题的操作";
        var passwd_balnk = "- 密码中不能包含空格";
        var username_chana = "- 用户名不能有中文。";
        var msg_uname_length = "- 用户名不能超过 20 个字符。";
        var msg_un_chine = "* 用户名不能为中文";
        var msg_mobile_phone_blank = "* 手机号码不能为空";
        var msg_mobile_phone_registered = "* 手机号码已存在";
        var msg_mobile_phone_format = "* 手机号码不是一个有效号码";
        var msg_email_code_blank = "- 邮箱验证码不能为空";
        var msg_mobile_phone_code_blank = "- 手机验证码不能为空";
        var msg_captcha_blank = "- 验证码不能为空";
        var msg_register_type_blank = "- 注册类型不能为空";
        var username_exist = "用户名 %s 已经存在";
        $().ready(function () {

            $("#zemail").click(function () {
                sendEmailCode($("#email"), $("#email_code"), $(this));
            });

            $("#zphone").click(function () {
                sendMobileCode($("#mobile_phone"), $("#mobile_code"), $(this));
            });

            $("#emailForm").submit(function () {
                return reg_by_email();
            });

            $("#mobileForm").submit(function () {
                return reg_by_mobile();
            });
        });
    </script>
    <div class="footer">
        <div class="links" id="ECS_MEMBERZONE"><a href="login.html"><span>登录</span></a>
            <a href="register.html"><span>注册</span></a>
            <!--<a href="http://xiaobaosc.com/mobile/register.php#"><span>反馈</span></a>-->
            <a href="javascript:window.scrollTo(0,0);"><span>回顶部</span></a>
        </div>
        <ul class="linkss">
            <li>
                <a href="http://xiaobaosc.com/mobile/register.php#">
                    <i class="footerimg_1"></i>
                    <span>客户端</span></a></li>
            <li>
                <a href="javascript:;"><i class="footerimg_2"></i><span class="gl">触屏版</span></a></li>
            <li><a href="http://xiaobaosc.com/mobile/index.php?is_c=1" class="goDesktop"><i
                    class="footerimg_3"></i><span>电脑版</span></a></li>
        </ul>
        <p class="mf_o4">© 2015-2018 小宝商城 版权所有，并保留所有权利。</p>
    </div>

</div>
<script type="text/javascript">
    var process_request = "正在处理您的请求...";
    var username_empty = "- 用户名不能为空。";
    var username_shorter = "- 用户名长度不能少于 3 个字符。";
    var username_invalid = "- 用户名只能是由字母数字以及下划线组成。";
    var password_empty = "- 登录密码不能为空。";
    var password_shorter = "- 登录密码不能少于 6 个字符。";
    var confirm_password_invalid = "- 两次输入密码不一致";
    var email_empty = "- Email 为空";
    var email_invalid = "- Email 不是合法的地址";
    var agreement = "- 您没有接受协议";
    var msn_invalid = "- msn地址不是一个有效的邮件地址";
    var qq_invalid = "- QQ号码不是一个有效的号码";
    var home_phone_invalid = "- 家庭电话不是一个有效号码";
    var office_phone_invalid = "- 办公电话不是一个有效号码";
    var mobile_phone_invalid = "- 手机号码不是一个有效号码";
    var msg_un_blank = "* 用户名不能为空";
    var msg_un_length = "* 用户名不得超过14个字符";
    var msg_un_format = "* 用户名含有非法字符";
    var msg_un_registered = "* 用户名已经存在,请重新输入";
    var msg_can_rg = "* 可以注册";
    var msg_email_blank = "* 邮件地址不能为空";
    var msg_email_registered = "* 邮箱已存在";
    var msg_email_format = "* 邮件地址不合法";
    var msg_blank = "不能为空";
    var no_select_question = "- 您没有完成密码提示问题的操作";
    var passwd_balnk = "- 密码中不能包含空格";
    var username_chana = "- 用户名不能有中文。";
    var msg_uname_length = "- 用户名不能超过 20 个字符。";
    var msg_un_chine = "* 用户名不能为中文";
    var msg_mobile_phone_blank = "* 手机号码不能为空";
    var msg_mobile_phone_registered = "* 手机号码已存在";
    var msg_mobile_phone_format = "* 手机号码不是一个有效号码";
    var msg_email_code_blank = "- 邮箱验证码不能为空";
    var msg_mobile_phone_code_blank = "- 手机验证码不能为空";
    var msg_captcha_blank = "- 验证码不能为空";
    var msg_register_type_blank = "- 注册类型不能为空";
    var username_exist = "用户名 %s 已经存在";
</script>

<script type="text/javascript">
    $(function () {
        $('input[type=text],input[type=password]').bind({
            focus: function () {
                $(".global-nav").css("display", 'none');
            },
            blur: function () {
                $(".global-nav").css("display", 'flex');
            }
        });
    })
</script>

</body>
</html>